<p class="fw-bold">
    These options control the scaffolding process:
</p>

<div class="input-row"
     title="Don't use the pluralizer.">
    <div class="label-column">
        <label class="col-form-label"
               for="chkNoPluralize">
            No Pluralize
        </label>
    </div>
    <div class="input-column">
        <div class="form-check">
            <input id="chkNoPluralize" class="form-check-input"
                   type="checkbox"
                   checked.bind="connection.scaffoldOptions.noPluralize">
        </div>
    </div>
</div>

<div class="input-row"
     title="Use table, view, sequence, and column names exactly as they appear in the database. If this option is unchecked, database names are changed to more closely conform to C# name style conventions.">
    <div class="label-column">
        <label class="col-form-label"
               for="chkUseDbNames">
            Use Database Names
        </label>
    </div>
    <div class="input-column">
        <div class="form-check">
            <input id="chkUseDbNames" class="form-check-input"
                   type="checkbox"
                   checked.bind="connection.scaffoldOptions.useDatabaseNames">
        </div>
    </div>
</div>

<div class="input-row"
     title="Generate a pre-compiled model that can improve EF Core startup time for large models. Click 'Learn more' for more info and limitations.">
    <div class="label-column">
        <label class="col-form-label"
               for="chkOptimizeDbContext">
            Use Compiled Model
        </label>
    </div>
    <div class="input-column">
        <div class="form-check">
            <input id="chkOptimizeDbContext" class="form-check-input"
                   type="checkbox"
                   checked.bind="connection.scaffoldOptions.optimizeDbContext">
        </div>
        <a href="https://learn.microsoft.com/en-us/ef/core/performance/advanced-performance-topics#compiled-models"
           external-link>
            Learn more...
        </a>
    </div>
</div>

<hr class="mb-4"/>

<div class="row">
    <div class="col">
        <b>Schemas</b>
        <p>
            The schemas of tables and views to generate entity types for
            <i class="info-icon text-info"
               title="If no schemas are defined, all schemas are included. If this option is used, then all tables and views in the schemas will be included in the model, even if they are not explicitly included in the Tables section."></i>
        </p>
        <textarea value.bind="schemas"
                  class="form-control"
                  rows="8"
                  spellcheck="false"
                  placeholder="schema1
schema2
schema3"></textarea>
    </div>
    <div class="col">
        <b>Tables</b>
        <p>
            The tables and views to generate entity types for
            <i class="info-icon text-info"
               title="Tables or views in a specific schema can be included using the 'schema.table' or 'schema.view' format. If this option is omitted, all tables and views are included."></i>
        </p>
        <textarea value.bind="tables"
                  class="form-control"
                  rows="8"
                  spellcheck="false"
                  placeholder="table1
table2
table3"></textarea>
    </div>
</div>
